﻿@{
    ViewBag.Title = "ProductStockEnterInputList";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<head>
    <title></title>
    <link href="~/Content/css/WareHouseStorage.css" type="text/css" rel="stylesheet" />
    <script>
        var moduleId = $.request("moduleId");
        $(function () {
            gridList();
        })
        function gridList() {
            $("#gridList").dataGrid({
                treeGrid: true,
                treeGridModel: "adjacency",
                ExpandColumn: "F_Location",
                url: "/SystemManage/ModuleButton/GetTreeGridJson?moduleId=" + moduleId,
                height: $(window).height() - 90,
                colModel: [
                             {
                                 label: "<img src='../../Content/img/checkokmark.gif'/> 全选", name: 'F_JsEvent', width: 60, align: 'left',
                                 formatter: function (cellvalue) {
                                     if (cellvalue == 1) {
                                         return "<img src='../../Content/img/checkokmark.gif'/>";
                                     } else {
                                         return "<img src='../../Content/img/checknomark.gif'/>";
                                     }
                                 }
                             },
                          { label: "序号", name: "F_Id", width: 120, align: 'left' },
                          { label: "发生方式", name: "F_Id", width: 120, align: 'left' },
                          { label: "单据编号", name: "F_ModuleId", width: 120, align: 'left' },
                          { label: '单据日期', name: 'F_FullName', width: 100, align: 'left' },
                          { label: '领料单位', name: 'F_Location', width: 100, align: 'left' },
                          { label: '领料单位名称', name: 'F_JsEvent', width: 100, align: 'left' },
                          { label: '开票数量', name: 'F_Split', width: 80, align: 'left' },
                          { label: '实际数量', name: 'F_IsPublic', width: 80, align: 'left' },
                          { label: '开票总价(元)', name: 'F_AllowEdit', width: 80, align: 'left' },
                          { label: '实际总价(元)', name: 'F_AllowDelete', width: 80, align: 'left' },
                          { label: '凭证编号', name: 'F_AllowEdit', width: 80, align: 'left' },
                          { label: '备注', name: 'F_AllowDelete', width: 80, align: 'left' },

                          { label: '审核状态', name: 'F_Split', width: 80, align: 'left' },
                          { label: '输入人员', name: 'F_Split', width: 80, align: 'left' },
                          { label: '输入日期', name: 'F_IsPublic', width: 80, align: 'left' },
                          { label: '输入时间', name: 'F_AllowEdit', width: 80, align: 'left' },
                          { label: '审核人', name: 'F_AllowDelete', width: 80, align: 'left' },

                          { label: '审核日期', name: 'F_Split', width: 80, align: 'left' },
                ]
            });
        }
        function btn_add() {
            $.detailOpen({
                id: "Detail",
                title: "",
                url: "/WareHouse/ProductStock/ProductStockEnterInput"
            });
        }
        function btn_modify() {
            $.detailOpen({
                id: "Detail",
                title: "",
                url: "/WareHouse/EnterWareHouse/WareHouseNoticeModi"
            });
        }
        function btn_excel() {
            $.detailOpen({
                id: "Detail",
                title: "",
                url: "/WareHouse/Export/WareHouseNoticeExcel"
            });
        }
        function btn_print() {
            $.detailOpen({
                id: "Detail",
                title: "",
                url: "/WareHouse/Print/WareHouseNoticePrint"
            });
        }
    </script>
</head>
<body>
    <div id="topinfo01">
        来料单位
        <div style="margin-top:2px;">
            <select style="width:119px;height:20px">
                <option value="">==请选择==</option>
                <option value="东风公司">东风公司</option>
                <option value="东风江森">东风江森</option>
                <option value="东风伟世通">东风伟世通</option>
                <option value="东风李尔">东风李尔</option>
            </select>
        </div>
    </div>
    <div id="topinfo02">
        <div style="margin-top:0px; margin-left:1px">
            <nobr>
                <p class="spread1">
                    零部件号
                    &nbsp&nbsp入库日期
                    &nbsp&nbsp批次号
                    <br />
                </p>
            </nobr>
        </div>
        <div style="margin-top:-8px;">
            <nobr>
                <p class="spread2">
                    <input name="address" type="date" value="" size="15" maxlength="5">
                    <input name="address" type="text" value="" size="15" maxlength="5">
                    <input name="address" type="text" value="" size="15" maxlength="5">

                </p>
            </nobr>
        </div>
    </div>
    <div id="topinfo03">
        <div class="btn-group" style="margin-top:-8px;">
            <br />    <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-search"></span>&nbsp查询</a>
        </div>
    </div>
    <div id="topinfo04">
        <div class="btn-group" style="margin-top:-8px;">
            <br />
            <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh">&nbsp刷新</span></a>
            <a class="btn btn-primary" onclick="btn_add()"><i class="fa fa-plus"></i>&nbsp输入</a>
            <a class="btn btn-primary" onclick="btn_modi()"><i class="fa fa-plus"></i>&nbsp修改</a>
            <a class="btn btn-primary" onclick="btn_delete()"><i class="fa fa-plus"></i>&nbsp删除</a>
            <a class="btn btn-primary" onclick="btn_audit()"><i class="fa fa-plus"></i>&nbsp审核</a>
            <a class="btn btn-primary dropdown-text" onclick="btn_excel()"><i class="fa fa-plus"></i>&nbsp导出</a>
            <a class="btn btn-primary dropdown-text" onclick="btn_print()"><i class="fa fa-plus"></i>&nbsp打印</a>
        </div>
    </div>
    <div id="area5">
        <div class="gridPanel">
            <table id="gridList"></table>
        </div>
    </div>
</body>
